I am open a modal popup form but datepicker for DOB was not working.
Here is my code:
<div class="col-md-6">
<label for="dob">DOB</label>
<div class='input-group date' id='datetimepicker1'>
@Html.TextBoxFor(x => x.DOB, "{0:MM/dd/yyyy}", new { @class = "form-control", placeholder = "mm/dd/yyyy" })
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
@Html.ValidationMessageFor(x => x.DOB)
</div>
/div>
Anonymous User
06-Dec-2017Hi Harsh,
I analyzed your code, you are missing javascript code for datepicker.
After analyzing your code i have found that javascript code for datepicker is been missing in your line of codes.
Kindly add the given line of codes in your view bottom as following :